package com.techstar.api.service;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.techstar.api.util.GateWayApiProperties;
import com.techstar.api.util.TrafficApiProperties;

/**
 * 
 * @author EinIce
 * @description 接口配置初始化
 * @date 2021年7月16日
 *
 */
@Configuration
public class ConfigProperties {
//	roma认证-交通枢纽运行监测_1全市对外监测
	@ConfigurationProperties(prefix = "traffic.roma-api.city-external")
	@Bean(name = "roma_api_city_external")
	public GateWayApiProperties romaCityExternalApiProperties() {
		return new GateWayApiProperties();
	}
//	roma认证-交通枢纽运行监测_2枢纽对外监测
	@ConfigurationProperties(prefix = "traffic.roma-api.hinge-external")
	@Bean(name = "roma_api_hinge_external")
	public GateWayApiProperties romaHingeExternalApiProperties() {
		return new GateWayApiProperties();
	}
//	roma认证-交通枢纽运行监测_3枢纽态势监测
	@ConfigurationProperties(prefix = "traffic.roma-api.hinge-situation")
	@Bean(name = "roma_api_hinge_situation")
	public GateWayApiProperties romaHingeSituationApiProperties() {
		return new GateWayApiProperties();
	}
	//—————————————————————————————1————————————————————————————————
//	各区域旅客OD排名
	@ConfigurationProperties(prefix = "traffic.api.ceaor")
	@Bean(name = "ceaor")
	public TrafficApiProperties ceaorApiProperties() {
		return new TrafficApiProperties();
	}
//	全市全部集装箱吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.cectt")
	@Bean(name = "cectt")
	public TrafficApiProperties cecttApiProperties() {
		return new TrafficApiProperties();
	}
//	集装箱吞吐量及周转量
	@ConfigurationProperties(prefix = "traffic.api.cecv")
	@Bean(name = "cecv")
	public TrafficApiProperties cecvApiProperties() {
		return new TrafficApiProperties();
	}
//	全市枢纽货物吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.ceftt")
	@Bean(name = "ceftt")
	public TrafficApiProperties cefttApiProperties() {
		return new TrafficApiProperties();
	}
//	货物吞吐量及周转量
	@ConfigurationProperties(prefix = "traffic.api.cefv")
	@Bean(name = "cefv")
	public TrafficApiProperties cefvApiProperties() {
		return new TrafficApiProperties();
	}
//	旅客运输量及周转量
	@ConfigurationProperties(prefix = "traffic.api.cepv")
	@Bean(name = "cepv")
	public TrafficApiProperties cepvApiProperties() {
		return new TrafficApiProperties();
	}
//	全市枢纽旅客运输量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.cepvt")
	@Bean(name = "cepvt")
	public TrafficApiProperties cepvtApiProperties() {
		return new TrafficApiProperties();
	}
//	各省区旅客OD排名
	@ConfigurationProperties(prefix = "traffic.api.cepor")
	@Bean(name = "cepor")
	public TrafficApiProperties ceporApiProperties() {
		return new TrafficApiProperties();
	}
//	全市枢纽当日实时货运量
	@ConfigurationProperties(prefix = "traffic.api.cerfv")
	@Bean(name = "cerfv")
	public TrafficApiProperties cerfvApiProperties() {
		return new TrafficApiProperties();
	}
//	全市枢纽当日累计客运量
	@ConfigurationProperties(prefix = "traffic.api.cerpv")
	@Bean(name = "cerpv")
	public TrafficApiProperties cerpvApiProperties() {
		return new TrafficApiProperties();
	}
	//—————————————————————————2————————————————————————————
	//各类型枢纽集装箱吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.hectt")
	@Bean(name = "hectt")
	public TrafficApiProperties hecttApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽集装箱吞吐量及周转量
	@ConfigurationProperties(prefix = "traffic.api.hecv")
	@Bean(name = "hecv")
	public TrafficApiProperties hecvApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽货物吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.heftt")
	@Bean(name = "heftt")
	public TrafficApiProperties hefttApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型货物吞吐量及周转量
	@ConfigurationProperties(prefix = "traffic.api.hefv")
	@Bean(name = "hefv")
	public TrafficApiProperties hefvApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽集装箱吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.heictt")
	@Bean(name = "heictt")
	public TrafficApiProperties heicttApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽集装箱吞吐量及周转量
	@ConfigurationProperties(prefix = "traffic.api.heicv")
	@Bean(name = "heicv")
	public TrafficApiProperties heicvApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽实时突发事件
	@ConfigurationProperties(prefix = "traffic.api.heie")
	@Bean(name = "heie")
	public TrafficApiProperties heieApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽货物吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.heiftt")
	@Bean(name = "heiftt")
	public TrafficApiProperties heifttApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽货物吞吐量及周转量
	@ConfigurationProperties(prefix = "traffic.api.heifv")
	@Bean(name = "heifv")
	public TrafficApiProperties heifvApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽旅客运输量及周转量
	@ConfigurationProperties(prefix = "traffic.api.heipv")
	@Bean(name = "heipv")
	public TrafficApiProperties heipvApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽旅客运输量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.heipvt")
	@Bean(name = "heipvt")
	public TrafficApiProperties heipvtApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽客流量预测
	@ConfigurationProperties(prefix = "traffic.api.heippv")
	@Bean(name = "heippv")
	public TrafficApiProperties heippvApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽各省区旅客OD排名
	@ConfigurationProperties(prefix = "traffic.api.heipor")
	@Bean(name = "heipor")
	public TrafficApiProperties heiporApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽实时运力
	@ConfigurationProperties(prefix = "traffic.api.heirc")
	@Bean(name = "heirc")
	public TrafficApiProperties heircApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽实时班次
	@ConfigurationProperties(prefix = "traffic.api.heird")
	@Bean(name = "heird")
	public TrafficApiProperties heirdApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽实时货运量
	@ConfigurationProperties(prefix = "traffic.api.heirfv")
	@Bean(name = "heirfv")
	public TrafficApiProperties heirfvApiProperties() {
		return new TrafficApiProperties();
	}
	//单个枢纽实时客运量
	@ConfigurationProperties(prefix = "traffic.api.heirpv")
	@Bean(name = "heirpv")
	public TrafficApiProperties heirpvApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽当年旅客出发到达量
	@ConfigurationProperties(prefix = "traffic.api.hepc")
	@Bean(name = "hepc")
	public TrafficApiProperties hepcApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽旅客运输量及周转量
	@ConfigurationProperties(prefix = "traffic.api.hepv")
	@Bean(name = "hepv")
	public TrafficApiProperties hepvApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽旅客运输量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.hepvt")
	@Bean(name = "hepvt")
	public TrafficApiProperties hepvtApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽各省区旅客OD排名
	@ConfigurationProperties(prefix = "traffic.api.hepod")
	@Bean(name = "hepod")
	public TrafficApiProperties hepodApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽实时班次
	@ConfigurationProperties(prefix = "traffic.api.herd")
	@Bean(name = "herd")
	public TrafficApiProperties herdApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽实时货运量
	@ConfigurationProperties(prefix = "traffic.api.herfv")
	@Bean(name = "herfv")
	public TrafficApiProperties herfvApiProperties() {
		return new TrafficApiProperties();
	}
	//各类型枢纽实时客运量
	@ConfigurationProperties(prefix = "traffic.api.herpv")
	@Bean(name = "herpv")
	public TrafficApiProperties herpvApiProperties() {
		return new TrafficApiProperties();
	}
	
	//—————————————————————————3————————————————————————————
	
//	各枢纽集装箱吞吐量TOP排名
	@ConfigurationProperties(prefix = "traffic.api.hscvrank")
	@Bean(name = "hscvrank")
	public TrafficApiProperties hscvRankApiProperties() {
		return new TrafficApiProperties();
	}
//	各枢纽货物吞吐量TOP排名
	@ConfigurationProperties(prefix = "traffic.api.hsfvrank")
	@Bean(name = "hsfvrank")
	public TrafficApiProperties hsfvRankApiProperties() {
		return new TrafficApiProperties();
	}
//	各枢纽旅客运输量TOP排名
	@ConfigurationProperties(prefix = "traffic.api.hspvrank")
	@Bean(name = "hspvrank")
	public TrafficApiProperties hspvRankApiProperties() {
		return new TrafficApiProperties();
	}

	//	各枢纽集装箱吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.hscv")
	@Bean(name = "hscv")
	public TrafficApiProperties hscvApiProperties() {
		return new TrafficApiProperties();
	}
	//	各枢纽货物吞吐量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.hsfv")
	@Bean(name = "hsfv")
	public TrafficApiProperties hsfvApiProperties() {
		return new TrafficApiProperties();
	}
	//	各枢纽旅客运输量变化趋势
	@ConfigurationProperties(prefix = "traffic.api.hspv")
	@Bean(name = "hspv")
	public TrafficApiProperties hspvApiProperties() {
		return new TrafficApiProperties();
	}
	//	各枢纽实时突发事件
	@ConfigurationProperties(prefix = "traffic.api.hse")
	@Bean(name = "hse")
	public TrafficApiProperties hseApiProperties() {
		return new TrafficApiProperties();
	}
//	各枢纽实时运力
	@ConfigurationProperties(prefix = "traffic.api.hsrc")
	@Bean(name = "hsrc")
	public TrafficApiProperties hsrcApiProperties() {
		return new TrafficApiProperties();
	}
//	各枢纽实时班次
	@ConfigurationProperties(prefix = "traffic.api.hsrd")
	@Bean(name = "hsrd")
	public TrafficApiProperties hsrdApiProperties() {
		return new TrafficApiProperties();
	}
//	各枢纽实时客运量
	@ConfigurationProperties(prefix = "traffic.api.hsrpv")
	@Bean(name = "hsrpv")
	public TrafficApiProperties hsrpvApiProperties() {
		return new TrafficApiProperties();
	}
	
//	@ConfigurationProperties(prefix = "traffic.api.")
//	@Bean(name = "")
//	public TrafficApiProperties ApiProperties() {
//		return new TrafficApiProperties();
//	}
}
